from typing import Union

mylist :list[Union[int,str]] = [1,2,"Python","李"]

def func(data:Union[int,str]) -> Union[int,str]:
    return data
# print(func(1))
print(func("lijianqi"))
